<?php
require("../../funcionesDB.php");
if(isset($_REQUEST['axn'])) {
	if($_REQUEST['axn']=='insert_rss') {
		$rssInsertString = "insert into rss (url) values ('".$_REQUEST['url']."')";
		$rssInsertQuery = dbInsert($rssInsertString);
	} else if($_REQUEST['axn']=='update_rss') {
		$rssUpdateString = "update rss set url='".$_REQUEST['url']."' where rss_id=".$_REQUEST['rss_id'];
		$rssUpdateQuery = dbInsert($rssUpdateString);
	}
	header('Location:../index.php?admin=rss');
}
?>